/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

import { Request, Response } from 'express';
import { responseSuccess } from '../utils';
import type { ResponseItem } from '../utils';
import Mock from 'mockjs';

export default {
  'POST /FilePrint/getShopList': (req: Request, res: Response) => {
    const result: ResponseItem = {
      code: 0,
      msg: '成功',
      data: Mock.mock({
        'list|10': [
          {
            shop_id: '@id',
            name: '@cname',
            account: '@phone',
            phone: '@phone',
            province: '@province',
            city: '@city',
            district: '@county',
            address: '@region',
            proxy_id: '@id',
            'printer_num|1-99': 99,
            'yesterday_print_num|1-99': 1,
            'forbid|1': [0, 1],
          },
        ],
        total: 10,
      }),
    };
    return res.json(result);
  },
  'POST /FilePrint/shopLogin': (req: Request, res: Response) => responseSuccess(req, res),
};
